public class Demo6 {
    public static int func() {
        try {
            //return 10;
            throw new Exception();
        } catch (Exception e) {
            return 20;
        } finally {
            return 30;
        }
        //return 40;
    }
    public static void main(String[] args) {
        System.out.println(func());
    }
}
